package com.jeecms.wicool.manager.cms;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.cms.CmsInfo;

import java.util.List;

public interface CmsInfoMng {

    public Pagination getPage(String title, int pageNo, int pageSize, CmsUser user);

    public Pagination getPage(String title, Integer pageNo, Integer pageSize, Short publishType);

    public CmsInfo findById(Integer id);

    public CmsInfo update(CmsInfo bean, Integer shopId);

    public CmsInfo save(CmsInfo bean, Integer shopId);

    public CmsInfo deleteById(Integer id);

    public CmsInfo[] deleteByIds(Integer[] ids);

    public List<CmsInfo> getAll(CmsUser user);

    public CmsInfo findByContentId(Integer contentId);

}